import request from "@/utils/request";
import qs from "qs"

export function notReadNotice(){
  return request({
    url:'/admin/notice/notRead',
    method:'get',
  })
}

export function getnoticeList(query){
  return request({
    url:'/admin/notice/list',
    method:'get',
    params:query
  })
}

export function deleteNotice(ids){
  const query={
    ids:ids
  }
  return request({
    url:'/admin/notice/deleteNoticeById',
    method:'delete',
    params:query,
    paramsSerializer:function (params){
      return qs.stringify(params,{arrayFormat:'repeat'})
    }
  })
}

export function clearNotice(){
  return request({
    url:'/admin/notice/clearNotice',
    method:'delete'
  })
}

export function showDetail(query){
  return request({
    url:'/admin/notice/detailInfo',
    method:'get',
    params:query
  })
}
